package xd.ylwy.score.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import xd.ylwy.course.service.impl.TbCourseServiceImpl;
import xd.ylwy.score.entity.StudentScore;
import xd.ylwy.score.mapper.TbScoreMapper;
import xd.ylwy.score.service.impl.TbScoreServiceImpl;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xd
 * @since 2022-09-23
 */
@Controller
@RequestMapping("/tbScore")
public class TbScoreController {

    @Autowired
    private TbScoreServiceImpl tbScoreService;

    @ResponseBody
    @PostMapping ("/studentScore")
    public List<StudentScore> studentScore(@RequestParam String id){
        return tbScoreService.studentScore(id);

    }



}

